//
//  UpdateStatusViewController.m
//  Hai
//
//  Created by gaohaojie on 16/6/20.
//  Copyright © 2016年 wangzijian. All rights reserved.
//

#import "UpdateStatusViewController.h"

@interface UpdateStatusViewController ()

@end
@implementation UpdateStatusViewController
- (void)viewDidLoad {
    [super viewDidLoad];
    self.automaticallyAdjustsScrollViewInsets = NO;
    self.navigationController.navigationBarHidden =NO;
    self.navigationItem.title = @"设置状态";
    self.btnsv.selected = YES;
}
- (void)viewWillAppear:(BOOL)animated{
    [super viewDidAppear:animated];
}


-(void)checkbtn :(UIButton *) chkbtn{
    self.btnsv.selected = NO;
    self.btnby.selected = NO;
    self.btnym.selected = NO;
    self.btnbm.selected = NO;
    self.btntx.selected = NO;
    switch (chkbtn.tag) {
        case  1:
            self.btnsv.selected = YES;
            break;
        case 2:
            self.btnby.selected = YES;
            break;
        case 3:
            self.btnym.selected = YES;
            break;
        case 4:
            self.btnbm.selected = YES;
            break;
        case 5:
            self.btntx.selected = YES;
            break;
    }
}
@end
